/*
 * TMap Designer - A Thematic Map design software
 * Copyright (C) 2006 World Health Organization
 * http://www.who.int
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */
package who.tmap.imp.shapefile.impl;

import who.tmap.imp.shapefile.MainHeader;

/**
 * A shape file object representing Shape File Main Header
 */
public class MainHeaderImpl implements MainHeader {

    private int fileCode;
    private int fileLength;
    private int version;
    private int shapeType;
    private double xMin;
    private double yMin;
    private double xMax;
    private double yMax;
    private double zMin;
    private double zMax;
    private double mMin;
    private double mMax;
    
    MainHeaderImpl() {
    }
    
    /**
     * @return Returns the fileCode.
     */
    public int getFileCode() {
        return fileCode;
    }
    
    /**
     * @param fileCode The fileCode to set.
     */
    public void setFileCode(int fileCode) {
        this.fileCode = fileCode;
    }
    
    /**
     * @return Returns the fileLength.
     */
    public int getFileLength() {
        return fileLength;
    }
    
    /**
     * @param fileLength The fileLength to set.
     */
    public void setFileLength(int fileLength) {
        this.fileLength = fileLength;
    }
    
    /**
     * @return Returns the mMax.
     */
    public double getMMax() {
        return mMax;
    }
    
    /**
     * @param max The mMax to set.
     */
    public void setMMax(double max) {
        mMax = max;
    }
    
    /**
     * @return Returns the mMin.
     */
    public double getMMin() {
        return mMin;
    }
    
    /**
     * @param min The mMin to set.
     */
    public void setMMin(double min) {
        mMin = min;
    }
    
    /**
     * @return Returns the shapeType.
     */
    public int getShapeType() {
        return shapeType;
    }
    
    /**
     * @param shapeType The shapeType to set.
     */
    public void setShapeType(int shapeType) {
        this.shapeType = shapeType;
    }
    
    /**
     * @return Returns the version.
     */
    public int getVersion() {
        return version;
    }
    
    /**
     * @param version The version to set.
     */
    public void setVersion(int version) {
        this.version = version;
    }
    
    /**
     * @return Returns the xMax.
     */
    public double getXMax() {
        return xMax;
    }
    
    /**
     * @param max The xMax to set.
     */
    public void setXMax(double max) {
        xMax = max;
    }
    
    /**
     * @return Returns the xMin.
     */
    public double getXMin() {
        return xMin;
    }
    
    /**
     * @param min The xMin to set.
     */
    public void setXMin(double min) {
        xMin = min;
    }
    
    /**
     * @return Returns the yMax.
     */
    public double getYMax() {
        return yMax;
    }
    
    /**
     * @param max The yMax to set.
     */
    public void setYMax(double max) {
        yMax = max;
    }
    
    /**
     * @return Returns the yMin.
     */
    public double getYMin() {
        return yMin;
    }
    
    /**
     * @param min The yMin to set.
     */
    public void setYMin(double min) {
        yMin = min;
    }
    
    /**
     * @return Returns the zMax.
     */
    public double getZMax() {
        return zMax;
    }
    
    /**
     * @param max The zMax to set.
     */
    public void setZMax(double max) {
        zMax = max;
    }
    
    /**
     * @return Returns the zMin.
     */
    public double getZMin() {
        return zMin;
    }
    
    /**
     * @param min The zMin to set.
     */
    public void setZMin(double min) {
        zMin = min;
    }
    
    public String toString() {
        
        return new StringBuffer( "fileCode=[" ).append( fileCode )
        				.append( "], fileLength=[").append( fileLength )
        				.append( "], version=[").append( version )
        				.append( "], shapeType=[").append( shapeType )
        				.append( "], xMin=[").append( xMin )
        				.append( "], yMin=[").append( yMin )
        				.append( "], xMax=[").append( xMax )
        				.append( "], yMax=[").append( yMax )
        				.append( "], zMin=[").append( zMin )
        				.append( "], zMax=[").append( zMax )
        				.append( "], mMin=[").append( mMin )
        				.append( "], mMax=[").append( mMax )
        				.append( "]" ).toString();
   
    }
}
